package com.singzi.designPattern.decorator;

public class Main {
    public static void main(String[] args) {
        Person person = new Person("小明");
        System.out.println("装扮:");
        Sneakers sneakers = new Sneakers();
        BigTrouser bigTrouser = new BigTrouser();
        TShirts tShirts = new TShirts();
        sneakers.Decorate(person);
        bigTrouser.Decorate(sneakers);
        tShirts.Decorate(bigTrouser);
        tShirts.show();
    }
}
